package com.cgq.pro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cgq.base.service.impl.BaseServiceImpl;
import com.cgq.pro.dao.GeneratorDao;
import com.cgq.pro.entity.Generator;
import com.cgq.pro.service.GeneratorService;

@Service
public class GeneratorServiceImpl extends BaseServiceImpl<Generator> implements
		GeneratorService {
	
	private GeneratorDao generatorDao;
	
	@Autowired
	public void setGeneratorDao(GeneratorDao generatorDao) {
		this.baseDao=generatorDao;
		this.generatorDao = generatorDao;
	}

	public Generator findByTableName(String tableName,String prefix) {
		return generatorDao.findByTableName(tableName,prefix);
	}

}
